﻿<%@ page language="VB" masterpagefile="~/promocionVenta.master" autoeventwireup="false" inherits="Devoluciones_Devoluciones, App_Web_uwbio12d" title=" .:: EVOLTA | Promoción ::. " enableEventValidation="false" theme="PrincipalTheme" maintainScrollPositionOnPostBack="true" maxPageStateFieldLength="250" %>

<%@ MasterType VirtualPath="~/promocionVenta.master" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<%@ Register Assembly="Flan.Controls" Namespace="Flan.Controls" TagPrefix="flan" %>
<%@ OutputCache Duration="15" VaryByParam="*" Location="Client" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<style type="text/css">
.filaEncabezadoPrincipal
{
background-image: url( '../imagenes/px_td.jpg' );
width: 100%;
background-repeat: repeat;
}
.filaEncabezadoTitulo
{
background-image: url( '../imagenes/submenu3.PNG' );
background-repeat: repeat;
}
.filaEncabezado
{
background-image: url( '../imagenes/submenu3.PNG' );
width: 100%;
background-repeat: repeat;
}
.colGrilla
{
background-image: url( '../imagenes/submenu2.PNG' );
height: 20px;
background-repeat: repeat;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<table style="width: 100%; background-color: #f4f4f4;" cellspacing="0">
<tr class="filaEncabezadoPrincipal">
<td>
<table width="100%">
<tr>
<td>
<asp:Label ID="Label3" runat="server" CssClass="CeldaTituloTexto" Text="Modificación de Devoluciones"></asp:Label>
</td>
</tr>
</table>
</td>
</tr>
</table>
<asp:Panel ID="pnlDevoluciones" runat="server" Width="100%">
<table style="width: 100%; background-color: #f4f4f4" class="EditarLabel" cellspacing="0" cellpadding="0" border="1">
<tbody>
<tr style="height: 15px">
<td>
    <table cellpadding="0" cellspacing="0">
                <tr>
                <td align="right">
                </td>
                <td>
                &nbsp;
                </td>
                <td>
                &nbsp;
                </td>
                <td align="right">
                &nbsp;
                </td>
                <td align="right">
                </td>
                <td>
                &nbsp;
                </td>
                <td>
                </td>
                <td width="10">
                &nbsp;
                </td>
                <td width="10">
                </td>
                <td width="10">
                </td>
                <td width="10">
                </td>
                </tr>
                <tr>
                <td align="right">
                <asp:Label ID="Label1" runat="server" SkinID="lblNormal" Text="Fecha Venta Inicial : "></asp:Label>
                </td>
                <td align="right">
                &nbsp;
                </td>
                <td>
                <asp:UpdatePanel ID="upFchInicio" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                <asp:TextBox ID="txtFchInicio" runat="server" SkinID="txtNormalObligatorioSkin" Width="100px"></asp:TextBox>
                <asp:ImageButton ID="imgFchInicio" runat="server" ImageUrl="~/imagenes/Procesos/calendario.png" />
                <ajax:MaskedEditExtender ID="MExtFchInicio" runat="server" CultureAMPMPlaceholder=""
                CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder=""
                CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder=""
                Enabled="True" Mask="99/99/9999" MaskType="Date" TargetControlID="txtFchInicio"
                UserDateFormat="DayMonthYear">
                </ajax:MaskedEditExtender>
                <ajax:CalendarExtender ID="CExtFchInicio" runat="server" Format="dd/MM/yyyy" PopupButtonID="imgFchInicio"
                TargetControlID="txtFchInicio">
                </ajax:CalendarExtender>
                </ContentTemplate>
                <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnLimpiar" EventName="Click" />
                </Triggers>
                </asp:UpdatePanel>
                </td>
                <td align="right">
                &nbsp;
                </td>
                <td align="right">
                <asp:Label ID="Label27" runat="server" SkinID="lblNormal" Text="Fecha Venta Final : "></asp:Label>
                </td>
                <td align="right">
                &nbsp;
                </td>
                <td>
                <asp:UpdatePanel ID="upFchFin" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                <asp:TextBox ID="txtFchFin" runat="server" SkinID="txtNormalObligatorioSkin" Width="100px"></asp:TextBox>
                <asp:ImageButton ID="imgFchFin" runat="server" ImageUrl="~/imagenes/Procesos/calendario.png"
                Width="16px" />
                <ajax:MaskedEditExtender ID="MExtFchFin" runat="server" CultureAMPMPlaceholder=""
                CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder=""
                CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder=""
                Enabled="True" Mask="99/99/9999" MaskType="Date" TargetControlID="txtFchFin"
                UserDateFormat="DayMonthYear">
                </ajax:MaskedEditExtender>
                <ajax:CalendarExtender ID="CExtFchFin" runat="server" Format="dd/MM/yyyy" PopupButtonID="imgFchFin"
                TargetControlID="txtFchFin">
                </ajax:CalendarExtender>
                </ContentTemplate>
                <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnLimpiar" EventName="Click" />
                </Triggers>
                </asp:UpdatePanel>
                </td>
                <td width="10">
                &nbsp;
                </td>
                <td width="10">
                <asp:Button ID="btnBuscar" runat="server" SkinID="btnNormalSkin" Text="Buscar" />
                </td>
                <td width="10">
                <asp:Button ID="btnLimpiar" runat="server" Text="Limpiar" SkinID="btnNormalSkin" />
                </td>
                <td width="10">
                <asp:Button ID="btnExportar" runat="server" Text="Exportar" SkinID="btnNormalSkin" />
                </td>
                </tr>
                <tr>
                <td align="right">
                <asp:Label ID="Label94" runat="server" Text="Cliente :" SkinID="lblNormal"></asp:Label>
                </td>
                <td>
                </td>
                <td colspan="5">
                <asp:UpdatePanel ID="upCliente" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                <input id="txtCliente" runat="server" autocomplete="off" type="text" class="CsstxtNormal" style="width: 430px"
                onkeypress="return validarSoloLetras(event);"
                maxlength="55"/>
                </ContentTemplate>
                </asp:UpdatePanel>
                </td>
                <td>
                &nbsp;</td>
                <td>
                &nbsp;</td>
                <td>
                &nbsp;</td>
                <td>
                &nbsp;</td>
                </tr>
                <tr>
                <td align="right">
                &nbsp;
                </td>
                <td align="right">
                &nbsp;
                </td>
                <td>
                &nbsp;
                </td>
                <td align="right">
                &nbsp;&nbsp;
                </td>
                <td align="right">
                &nbsp;
                </td>
                <td align="right">
                &nbsp;
                </td>
                <td>
                &nbsp;
                </td>
                <td width="10">
                &nbsp;
                </td>
                <td width="10">
                &nbsp;
                </td>
                <td width="10">
                &nbsp;
                </td>
                <td width="10">
                &nbsp;
                </td>
                </tr>
    </table>
</td>
</tr>
<tr>
<td>
<div style="width: 100%; height: 20px; scrollbar-face-color: #B5B5B5;" class="DivPanelGrillaEncabezado">
<table cellpadding="0" cellspacing="1" width="100%">
<tr align="center">
<td align="center" valign="middle" width="6%" class="colGrilla"><asp:LinkButton ID="lnkBtnCodigo" runat="server" CommandArgument="idDevolucion" CommandName="idDevolucion" Height="100%" SkinID="lnkBtnEncabezado">N° Correlativo</asp:LinkButton></td>
<td align="center" valign="middle" class="colGrilla" width="10%"><asp:LinkButton ID="lnkBtnFechaSeparacion" runat="server" CommandArgument="fchSeparacionVenta" CommandName="fchSeparacionVenta" Height="100%" SkinID="lnkBtnEncabezado">F. Separación |Venta</asp:LinkButton></td>
<td align="center" valign="middle" class="colGrilla" width="14%"><asp:LinkButton ID="lnkBtnNombreCliente" runat="server" CommandArgument="NombresCompletos" CommandName="NombresCompletos" Height="100%" SkinID="lnkBtnEncabezado">Nombre Cliente</asp:LinkButton></td>
<td align="center" valign="middle" class="colGrilla" width="15%"><asp:LinkButton ID="lnkBtnNombreBloque" runat="server" CommandArgument="NombreTpoInmuebles" CommandName="NombreTpoInmueble" Height="100%" SkinID="lnkBtnEncabezado">Nombre Bloque</asp:LinkButton></td>
<td align="center" valign="middle" class="colGrilla" width="10%"><asp:LinkButton ID="lnkBtnNroInmueble" runat="server" CommandArgument="nroInmueble" CommandName="nroInmueble" Height="100%" SkinID="lnkBtnEncabezado">Nro Inmueble</asp:LinkButton></td>
<td align="center" valign="middle" class="colGrilla" width="15%"><asp:LinkButton ID="lnkBtnMotivoDevolucion" runat="server" CommandArgument="descmotDevInmueble" CommandName="descmotDevInmueble" Height="100%" SkinID="lnkBtnEncabezado">Motivo Devolución</asp:LinkButton></td>
<td align="center" valign="middle" class="colGrilla" width="10%"><asp:LinkButton ID="lnkBtnTipoGestion" runat="server" CommandArgument="tpoGestion" CommandName="tpoGestion" Height="100%" SkinID="lnkBtnEncabezado">Tipo Gestión</asp:LinkButton></td>
<td align="center" valign="middle" class="colGrilla" width="10%"><asp:LinkButton ID="lnkBtnMontoPenalidad" runat="server" CommandArgument="montPenalidad" CommandName="montPenalidad" Height="100%" SkinID="lnkBtnEncabezado">Monto Penalidad</asp:LinkButton></td>
<td align="center" valign="middle" class="colGrilla" width="10%"><asp:LinkButton ID="lnkBtnFechaDevolucion" runat="server" CommandArgument="fchDevolucion" CommandName="fchDevolucion" Height="100%" SkinID="lnkBtnEncabezado">FechaDevolución</asp:LinkButton></td>
</tr>
</table>
</div>
<div style="overflow-y: scroll; overflow-x: hidden; width: 100%; height: 470px; scrollbar-face-color: #B5B5B5;" class="DivPanelGrillaCuerpo">
<asp:UpdatePanel ID="Upndevolucion" UpdateMode="Conditional"  runat="server">
<ContentTemplate>
<asp:GridView ID="gvwDevolucion" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="0" ForeColor="Black" GridLines="Vertical" Width="99%" Font-Names="Tahoma" DataKeyNames="idDevolucion" SkinID="gvwListaSkin" ShowHeader="False" EnableSortingAndPagingCallbacks="false">
<Columns>
<asp:TemplateField HeaderText="Código">
<ItemTemplate>
<asp:LinkButton ID="lnkCodigo" runat="server" CausesValidation="False" CommandArgument='<%# Eval("idProyectoEtapaDevolucion") %>' CommandName="Edit" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;" Text='<%# Eval("idDevolucion","{0:00000}") %>'></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="6%" Height="20px" />
<ItemStyle HorizontalAlign="Center" Width="6%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Fecha Separacion">
<ItemTemplate>
<asp:LinkButton ID="lnkFechaSeparacion" runat="server" CausesValidation="False" CommandArgument='<%# Eval("idProyectoEtapaDevolucion") %>' CommandName="Edit" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;" Text='<%# Eval("fchSeparacionVenta") %>'></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="10%" Height="20px" />
<ItemStyle HorizontalAlign="Center" Width="10%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="NombreCliente">
<ItemTemplate>
<asp:LinkButton ID="lnkNombreCliente" runat="server" CausesValidation="False" CommandArgument='<%# Eval("idProyectoEtapaDevolucion") %>' CommandName="Edit" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;" Text='<%# Eval("nombresCompletosCliente") %>'></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="14%" Height="20px" />
<ItemStyle HorizontalAlign="Left" Width="14%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="NombreBloque">
<ItemTemplate>
<asp:LinkButton ID="lnkNombreBloque" runat="server" CausesValidation="False" CommandArgument='<%# Eval("idProyectoEtapaDevolucion") %>' CommandName="Edit" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;" Text='<%# Eval("inmueble") %>'></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="15%" Height="20px" />
<ItemStyle HorizontalAlign="Left" Width="15%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="NroInmueble">
<ItemTemplate>
<asp:LinkButton ID="lnkNroInmueble" runat="server" CausesValidation="False" CommandArgument='<%# Eval("idProyectoEtapaDevolucion") %>' CommandName="Edit" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;" Text='<%# Eval("nroInmueble") %>'></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="10%" Height="20px" />
<ItemStyle HorizontalAlign="Center" Width="10%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="MotivoDevolucion">
<ItemTemplate>
<asp:LinkButton ID="lnkMotivoDevolucion" runat="server" CausesValidation="False" CommandArgument='<%# Eval("idProyectoEtapaDevolucion") %>' CommandName="Edit" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;" Text='<%# Eval("descmotDevInmueble") %>'></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="15%" Height="20px" />
<ItemStyle HorizontalAlign="Left" Width="15%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="TipoGestion">
<ItemTemplate>
<asp:LinkButton ID="lnkTipoGestion" runat="server" CausesValidation="False" CommandArgument='<%# Eval("idProyectoEtapaDevolucion") %>' CommandName="Edit" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;" Text='<%# Eval("descGestion") %>'></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="10%" Height="20px" />
<ItemStyle HorizontalAlign="Center" Width="10%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="MontoPenalidad">
<ItemTemplate>
<asp:LinkButton ID="lnkMontoPenalidad" runat="server" CausesValidation="False" CommandArgument='<%# Eval("idProyectoEtapaDevolucion") %>' CommandName="Edit" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;" Text='<%# Eval("montPenalidad") %>'></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Right" Width="10%" Height="20px" />
<ItemStyle HorizontalAlign="Right" Width="10%" Height="20px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="FechaDevolucion">
<ItemTemplate>
<asp:LinkButton ID="lnkFechaDevolucion" runat="server" CausesValidation="False" CommandArgument='<%# Eval("idProyectoEtapaDevolucion") %>' CommandName="Edit" ForeColor="Black" Height="20px" Style="display: block; text-decoration: none;" Text='<%# Eval("fchDevolucion") %>'></asp:LinkButton>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" Width="9%" Height="20px" />
<ItemStyle HorizontalAlign="Center" Width="9%" Height="20px" />
</asp:TemplateField>
</Columns>
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</td>
</tr>
</tbody>
</table>
</asp:Panel>
<ajax:ModalPopupExtender ID="mpDetalle" runat="server" TargetControlID="lblTitulo" BackgroundCssClass="modalBackground" DropShadow="True" PopupControlID="pnlDevolucion" PopupDragHandleControlID="lblTitulo" CancelControlID="btnCancelar"></ajax:ModalPopupExtender>
<asp:Panel ID="pnlDevolucion" runat="server" CssClass="modalPopup" Width="400px" Height="170px" Style="display: none;">
<table cellpadding="0" cellspacing="0" class="style1" width="100%">
<tr>
<td class="style2" colspan="3" bgcolor="#E44146">
<asp:Label ID="lblTitulo" runat="server" SkinID="lblFormulario" Text="Devolución [Registrar]"
ToolTip="Registrar"></asp:Label>
</td>
</tr>
<tr>
<td class="style2" align="right" valign="middle">
&nbsp;
</td>
<td rowspan="13">
&nbsp;
</td>
<td>
<asp:UpdatePanel ID="UpdatePanel12" runat="server">
<ContentTemplate>
<asp:TextBox ID="txtId" runat="server" Style="display: none;"></asp:TextBox></ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td align="right" class="style2" valign="middle">
&nbsp;
<asp:Label ID="Label5" runat="server" Text="Fecha Devolución: " SkinID="lblNormal"
TabIndex="1"></asp:Label>
</td>
<td>
<asp:UpdatePanel ID="UpdatePanel3" runat="server">
<ContentTemplate>
<asp:TextBox ID="txtfecha" runat="server" SkinID="txtNormalSkin" Style="text-align: center"
onkeypress="return validarSoloFecha(event);" MaxLength="10" TabIndex="1"></asp:TextBox>
<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/imagenes/Procesos/calendario.png" />
<ajax:MaskedEditExtender ID="txtfecha_MEditExt" runat="server" CultureAMPMPlaceholder=""
CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder=""
CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder=""
Enabled="True" Mask="99/99/9999" MaskType="Date" TargetControlID="txtfecha" UserDateFormat="DayMonthYear">
</ajax:MaskedEditExtender>
<ajax:CalendarExtender ID="CalExt1" runat="server" Format="dd/MM/yyyy"
PopupButtonID="ImageButton1" TargetControlID="txtfecha">
</ajax:CalendarExtender>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td class="style2" align="right">
&nbsp;
<asp:Label ID="Label6" runat="server" Text="Monto Penalidad: " SkinID="lblNormal"
TabIndex="3"></asp:Label>
</td>
<td>
<asp:UpdatePanel ID="UpdatePanel4" runat="server">
<ContentTemplate>
<input id="txtMontoPenalidad" name="txtMontoPenalidad" runat="server" autocomplete="off"
class="CsstxtNormalAlingRight" onkeypress="return validarSoloNumerico(event);"
type="text" maxlength="22" tabindex="4" />
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td class="style3" align="right">
<asp:Label ID="Label7" runat="server" Text="Motivo Devolución: " SkinID="lblNormal"
TabIndex="5"></asp:Label>
</td>
<td class="style3">
<asp:UpdatePanel ID="UpdatePanel5" runat="server">
<ContentTemplate>
<select id="selMotivoDevolucion" runat="server" class="CssddlNormalObligatorio" name="selMotivoDevolucion"
tabindex="8">
<option></option>
</select>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td class="style2" align="right" valign="middle">
&nbsp;
</td>
<td>
&nbsp;
</td>
</tr>
<tr>
<td align="right" class="style2" valign="middle">
<asp:Button ID="btnGuardar" runat="server" CausesValidation="False" SkinID="btnNormalSkin"
Text="Guardar" OnClientClick="return validar();" TabIndex="19" />
</td>
<td>
<asp:Button ID="btnCancelar" runat="server" CausesValidation="False" SkinID="btnNormalSkin"
Text="Cancelar" TabIndex="20" />
</td>
</tr>
<tr>
<td class="style2">
&nbsp;
</td>
<td>
&nbsp;
</td>
</tr>
</table>
</asp:Panel>
<asp:UpdateProgress ID="UpdateProgress1" runat="server" DisplayAfter="0">
<ProgressTemplate>
<div id="divProgress" class="divProgreso">
<img src="../imagenes/ajax-loader.gif" align="middle" alt="Procesando" />
<asp:Label ID="lblprogreso" runat="server" Text=" Procesando..." CssClass="EditarLabel"></asp:Label>
</div>
</ProgressTemplate>
</asp:UpdateProgress>
<flan:UpdateProgressOverlayExtender ID="UpdateProgressOverlayExtender1" runat="server"
CssClass="updateProgress" OverlayType="Browser" TargetControlID="UpdateProgress1"/>
</asp:Content>